@echo off
:1
gen.py > b.in
b
b2
fc b.out b2.out
if errorlevel 1 goto 2
type b.out
goto 1
:2
